package com.example.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.example.common.ResultBody;
import com.example.entity.dto.DtoUser;
import com.example.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;


public interface UserService extends IService<User> {
    List<DtoUser> queryRole(@Param("username")String username);
    ResultBody<Map<String,Object>> login(User user);
    ResultBody logout(HttpServletRequest request);
}
